﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Garden.Model
{
    public enum FarmlandState
    {
        Normal,
        /// <summary>
        /// 被偷过
        /// </summary>
        Stealed,
        /// <summary>
        /// 受保护
        /// </summary>
        Protect,
        /// <summary>
        /// 枯死
        /// </summary>
        Lose

    }
    public class Farmland
    {
        /// <summary>
        /// 谁的田
        /// </summary>
        public string UID { get; set; }
        /// <summary>
        /// 水分
        /// </summary>
        public int Water { get; set; }
        /// <summary>
        /// 农田编号
        /// </summary>
        public int FarmNum { get; set; }
        /// <summary>
        /// 状态(该地是否可以种植)
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 是否是爱心地（shared）
        /// </summary>
        public bool IsLoveFarm { get; set; }
        /// <summary>
        /// 我的爱心地(种植在好友家里的爱心地)
        /// </summary>
        public bool IsMyLoveFarm { get; set; }
        /// <summary>
        /// 植物成长率
        /// </summary>
        public double Growpercent { get; set; }
        /// <summary>
        /// 种子
        /// </summary>
        public Seed Seed { get; set; }
        /// <summary>
        /// 果实产量
        /// </summary>
        public int FruitNum { get; set; }
        /// <summary>
        /// 是否长草
        /// </summary>
        public bool IsGrass { get; set; }
        /// <summary>
        /// 是否长虫
        /// </summary>
        public bool IsVermin { get; set; }

        /// <summary>
        /// 农田
        /// </summary>
        public FarmlandState Crops { get; set; }
        
        /// <summary>
        /// 1--生长中，-1--枯死或偷光,2--成熟、保护期，3--被收获
        /// </summary>
        public string Cropsstatus { get; set; }
    }
}
